using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SimplePong
{
    public class AboutScreen : Screen
    {

        Texture2D fondo;
        string contentroot = "Textures/Menu/About/";

        public AboutScreen()
            : base()
        {
            
        }

        public override void LoadContent()
        {
            fondo = GameGlobals.content.Load<Texture2D>(contentroot + "about");
        }

        public override void Initialize()
        {
            

        }

        public override void Update()
        {
            if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
                ScreenManager.TransitionTo("MainMenu", "BlackFade");
        }

        public override void Draw()
        {
            spriteBatch.Begin();
            spriteBatch.Draw(fondo, Vector2.Zero, Color.White);
            spriteBatch.End();
        }
    }
}
